﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="SimpleCalculator.aspx.cs" Inherits="MathExpressionSolver.SimpleCalculator" MasterPageFile="~/Site.Master" Title="Simple Calculator" %>

<asp:Content runat="server" ID="FeaturedContent" ContentPlaceHolderID="FeaturedContent">
    <section class="featured">
        <div class="content-wrapper">
            <hgroup class="title">
                <h1><%: Title %></h1>
                <h2> - Calculator</h2>
            </hgroup>
            <p>
                This webpage has been created in order to provide a facility to
                work out simple mathematical operations between two numbers.
            </p>
        </div>
    </section>
</asp:Content>
<asp:Content runat="server" ID="BodyContent" ContentPlaceHolderID="MainContent">
    <h3>Provide two numbers in the textboxes, choose an operator and press '=' to see the result:</h3>
    <br />
    <div>
        <asp:TextBox ID="txtNum1" runat="server" Width="250px">0</asp:TextBox>
        &nbsp;<asp:DropDownList ID="cmbOperators" runat="server" Font-Size="Medium" ForeColor="#333333" Width="50px">
            <asp:ListItem Selected="True">+</asp:ListItem>
            <asp:ListItem>-</asp:ListItem>
            <asp:ListItem>*</asp:ListItem>
            <asp:ListItem>/</asp:ListItem>
        </asp:DropDownList>
        &nbsp;<asp:TextBox ID="txtNum2" runat="server" Width="250px">0</asp:TextBox>
        &nbsp;<asp:Button ID="btnEquals" runat="server" BorderStyle="None" Font-Size="Small" Text="=" OnClick="btnEquals_Click" />
        &nbsp;<asp:Label ID="lblResult" runat="server" Text="0" Font-Bold="True" Font-Size="Medium" ForeColor="#333333"></asp:Label>
    </div>
</asp:Content>